import { createApp } from 'vue'
// import { createPinia } from 'pinia'
import pinia from './stores/index'
import { setupAuth } from './permission/btnPermission'

import App from './App.vue'
import router from './router'


function appUse(app){
    app.use(pinia)
    app.use(router)
}

function setupAll(){
    const app = createApp(App)
    setupAuth(app)
    appUse(app);
    app.mount('#app')
}

setupAll();
